// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import router from './router'


// 引入myaxios
import myaxios from '@/assets/js/myaxios'
Vue.use(myaxios)



Vue.config.productionTip = false


//引入重置样式
import './assets/css/reset.css'
//引入动画样式
import animated from 'animate.css' // npm install animate.css --save安装，在引入
Vue.use(animated)

//引用echarts


import * as echarts from "echarts";
import "echarts-gl";
// import 'echarts-gl'
Vue.prototype.$echarts = echarts

//星空插件
import VueParticles from 'vue-particles'
Vue.use(VueParticles)


//引入自适应
// import 'lib-flexible/flexible'
import './assets/js/rem.js'

import commonFunction from './assets/js/commonFunction';   //引入文件
Vue.prototype.commonFunction = commonFunction;   // 绑定到vue上面

// 引入地图

// import "echarts/lib/chart/map.js"
// import "echarts/map/js/china.js"
// import 'echarts/map/js/world.js'



//引入highcharts
import Highchart from "highcharts/highcharts";
import HighchartsVue from "highcharts-vue";
import stockInit from "highcharts/modules/stock";
import wordcloud from "highcharts/modules/wordcloud";

stockInit(Highchart);
Vue.use(HighchartsVue);
wordcloud(Highchart);

// 引入是swiper
import 'swiper/dist/css/swiper.min.css'
import 'swiper/dist/js/swiper.min'

/* eslint-disable no-new */
new Vue({
  el: '#app',
  router,
  components: { App },
  template: '<App/>'
})